import request from '@/utils/request'

// 创建选择题
export function createSubjectChoices(data) {
  return request({
    url: '/admin-api/exam/subject/addSubject',
    method: 'post',
    data: data
  })
}

// 获得题目详情
export function getSubject(id,type) {
  return request({
    url: '/admin-api/exam/subject/' + id + '?type=' + type,
    method: 'get'
  })
}